package Day002_final_static_接口.zuoye;

public class Test {
    public static void main(String[] args) {

        //创建java讲师对象
        javaTeach j = new javaTeach();
        j.setName("张研");
        j.setAge(18);
        j.setSex("男");
        System.out.println(j.getName() + j.getSex() + j.getAge());
        j.work();

        //创建UI讲师对象
        UITeach u = new UITeach();
        u.setName("张三");
        u.setAge(20);
        u.setSex("女");
        System.out.println(u.getName() + u.getSex() + u.getAge());
        u.work();
        u.paint();
    }
}
